package com.ruoyi.logistic.service.impl;

import com.alibaba.fastjson2.JSONObject;
import com.github.pagehelper.PageHelper;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.domain.vo.InitTableVo;
import com.ruoyi.common.domain.vo.TableVo;
import com.ruoyi.common.service.TableService;
import com.ruoyi.logistic.domain.NetworkClientGoAreaIncome;
import com.ruoyi.logistic.domain.NetworkOutboundGoAreaIncome;
import com.ruoyi.logistic.domain.NetworkUndertakeGoAreaIncome;
import com.ruoyi.logistic.domain.PageInfo;
import com.ruoyi.logistic.domain.vo.NetworkClientGoAreaIncomeVo;
import com.ruoyi.logistic.domain.vo.NetworkOutboundGoAreaIncomeVo;
import com.ruoyi.logistic.domain.vo.NetworkUndertakeGoAreaIncomeVo;
import com.ruoyi.logistic.mapper.NetworkClientGoAreaIncomeMapper;
import com.ruoyi.logistic.mapper.NetworkOutboundGoAreaIncomeMapper;
import com.ruoyi.logistic.mapper.NetworkUndertakeGoAreaIncomeMapper;
import com.ruoyi.logistic.service.NetworkAreaIncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class NetworkAreaIncomeServiceImpl implements NetworkAreaIncomeService {
    @Autowired
    private NetworkOutboundGoAreaIncomeMapper networkOutboundGoAreaIncomeMapper;
    @Autowired
    private NetworkUndertakeGoAreaIncomeMapper networkUndertakeGoAreaIncomeMapper;
    @Autowired
    private NetworkClientGoAreaIncomeMapper networkClientGoAreaIncomeMapper;

    @Override
    public List<NetworkOutboundGoAreaIncome> outboundGoAreaIncome(NetworkOutboundGoAreaIncomeVo networkOutboundGoAreaIncomeVo) {
        PageHelper.startPage(networkOutboundGoAreaIncomeVo.getPageDate());
        return networkOutboundGoAreaIncomeMapper.outboundGoAreaIncome(networkOutboundGoAreaIncomeVo);
    }

    @Override
    public List<NetworkUndertakeGoAreaIncome> undertakeGoAreaIncome(NetworkUndertakeGoAreaIncomeVo networkUndertakeGoAreaIncomeVo) {
        PageHelper.startPage(networkUndertakeGoAreaIncomeVo.getPageDate());
        return networkUndertakeGoAreaIncomeMapper.undertakeGoAreaIncome(networkUndertakeGoAreaIncomeVo);
    }

    @Override
    public List<NetworkClientGoAreaIncome> clientGoAreaIncome(NetworkClientGoAreaIncomeVo networkClientGoAreaIncomeVo) {
        PageHelper.startPage(networkClientGoAreaIncomeVo.getPageDate());
        return networkClientGoAreaIncomeMapper.clientGoAreaIncome(networkClientGoAreaIncomeVo);
    }
}
